package org.wdcode.news.action;

import org.wdcode.back.action.BaseBackHelperAdviceAction;
import org.wdcode.base.interfaces.service.Service;
import org.wdcode.news.helper.ArticlesHelper;
import org.wdcode.news.helper.CategoryHelper;

/**
 * 后台系统带拦截有助手类的Action
 * @author WD
 * @since JDK6
 * @version 1.0 2009-11-29
 */
public abstract class BaseNewsHelperAdviceAction<S extends Service<E>, E> extends BaseBackHelperAdviceAction<Service<E>, E> {
	// 序列化 ID
	private static final long	serialVersionUID	= -7547200504112955002L;

	/**
	 * 获得文章助手
	 * @return 文章助手
	 */
	public final ArticlesHelper getArticlesHelper() {
		return ArticlesHelper.getHelper();
	}

	/**
	 * 获得栏目助手
	 * @return 栏目助手
	 */
	public final CategoryHelper getCategoryHelper() {
		return CategoryHelper.getHelper();
	}
}
